//移动零
#include<iostream>
using namespace std;
#include<vector>
class Solution
{
public:
    void moveZeroes(vector<int>& nums) 
    {
    for(int cur = 0, dest = -1; cur < nums.size(); cur++)
    if(nums[cur]) // 处理⾮零元素
    swap(nums[++dest], nums[cur]);
    }
  
};

int main()
{
    Solution p;
    vector<int> nums;
    p.moveZeroes(nums);
    
    return 0;
}